import axios from 'axios'
//确认邮箱
export function CheckEmail(email ) {
  let data = {
    "email": email
  }
  return axios.post('/api/Accounts/ForgotPassword', data)
    .then((response) => {
    return Promise.resolve(response.data)
  })
    .catch(function (error) {
      console.log(error)
    })
}
//rest_password
export function RestPassword(data) {
  return axios.post('/api/Accounts/ResetPassword', data)
    .then((response) => {
      return Promise.resolve(response.data)
    })
    .catch(function (error) {
      console.log(error)
    })
}
